package com.eagletsoft.mmproj.service;

public class ServiceResult {
	public static final int SUCCESS = 0;
	public static final int IOERROR = -99999;
	public static final int UNKNOWNERROR = -100000;
	
	private int errCode;
	private String errMsg;
	private Object data;
	
	public ServiceResult(int errCode, String errMsg, Object data) {
		this.errCode = errCode;
		this.errMsg = errMsg;
		this.data = data;
	}
	
	public ServiceResult(Object data)
	{
		this.data = data;
	}

	public int getErrCode() {
		return errCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public Object getData() {
		return data;
	}
}
